def interval_for_thumb(ntime, nthumb_max):
    assert not(nthumb_max == 0)
    if ntime < nthumb_max:
        ninterval = 1
    else:
        ninterval = int(ntime / nthumb_max)    
    return ninterval
    
if __name__ =='__main__':
    nthumb_max = 10
    ntime = 1000    
    ninterval = interval_for_thumb(ntime, nthumb_max)
    print range(0,ntime,ninterval)